<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('发货单')" />
    <th:block th:include="include :: datetimepicker-css" />
</head>
<body class="white-bg">
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
    <form class="form-horizontal m" id="form-order-edit" th:object="${order}">
        <input name="id" th:field="*{id}" type="hidden">

        <div class="form-group">
            <div class="form-group">
                <label class="col-sm-3 control-label">物流名称：</label>
                <div class="col-sm-8">
                    <select id="shippingName" name="shippingName" class="form-control m-b"  required >
                        <option th:each="dict : ${expressList}"
                                th:text="${dict.name}"
                                th:field="*{shippingName}"
                                th:value="${dict.name}" ></option>
                    </select>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">物流编号：</label>
                <div class="col-sm-8">
                    <input name="shippingCode" th:field="*{shippingCode}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">买家留言：</label>
                <div class="col-sm-8">
                    <input name="buyerMsg" th:field="*{buyerMsg}" class="form-control" type="text">
                </div>
            </div>
        </div>


    </form>
</div>
<th:block th:include="include :: footer" />
<th:block th:include="include :: datetimepicker-js" />
<script type="text/javascript">
    var prefix = ctx + "system/order";
    $("#form-order-edit").validate({
        focusCleanup: true
    });

    function submitHandler() {
        if ($.validate.form()) {
            $.operate.save(prefix + "/send", $('#form-order-edit').serialize());
        }
    }

</script>
</body>
</html>